## 模板1
import os

env = None
Enable_Clang = True
# 1.编译器
if Enable_Clang and os.system("which clang") == 0:
    # clang编译器
    env = Environment(tools=["default", "clang"])
    env["CC"] = ["clang"]
    env["CXX"] = ["clang++"]
else:
    env = Environment()

env["PROGSUFFIX"] = ".out"  # 可执行文件后缀.out
env["CCFLAGS"] = " -g3 -O0 -Wall"  # gdb 调试

env.Program("1_accsert.cc")
env.Program("2_try_catch_捕获异常.cc")
env.Program("3_throw_抛出异常.cc")
env.Program("4_try_exception_自定义抛出异常.cc")
env.Program("11_throw_抛出异常.cc")
